﻿function selectchange(id, totalid) {
    document.getElementById("txtcurtab").value = id;
    var i = 0;
    var title = "title";
    var content = "content";
    for (i = 0; i < totalid; i++) {
        title = "title" + i.toString();
        content = "content" + i.toString();
        if (i == id) {
            document.getElementById(title).style.background = "#ffffff";
            document.getElementById(title).style.borderBottomColor = "#ffffff";
            document.getElementById(content).style.display = "block";
        }
        else {
            document.getElementById(title).style.background = "#d9e7f8";
            document.getElementById(title).style.borderBottomColor = "#005EAC";
            document.getElementById(content).style.display = "none";
        }
    }
    document.getElementById("diverrormsg").style.display = "none";
    var draw = document.getElementById("divdraw");
    if (draw != null) {
        draw.innerHTML = "";
    }
    return false;
}
function keeptab(totalid) {
    id = document.getElementById("txtcurtab").value;
    var i = 0;
    var title = "title";
    var content = "content";
    for (i = 0; i < totalid; i++) {
        title = "title" + i.toString();
        content = "content" + i.toString();
        if (i == id) {
            document.getElementById(title).style.background = "#ffffff";
            document.getElementById(title).style.borderBottomColor = "#ffffff";
            document.getElementById(content).style.display = "block";
        }
        else {
            document.getElementById(title).style.background = "#d9e7f8";
            document.getElementById(title).style.borderBottomColor = "#005EAC";
            document.getElementById(content).style.display = "none";
        }
    }
    return false;
} 